From ef6666a9b0e40842d6d7490bb3a8866f53f21187 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 13 May 2008 12:43:24 +0100 Subject: [PATCH] Xend: Fix blkif type check for tap devices. Signed-off-by: Yosuke Iwamatsu --- tools/python/xen/xend/server/blkif.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/python/xen/xend/server/blkif.py b/tools/python/xen/xend/server/blkif.py index 82853d6fbf..a94bc66b3a 100644 --- a/tools/python/xen/xend/server/blkif.py +++ b/tools/python/xen/xend/server/blkif.py @@ -56,9 +56,10 @@ class BlkifController(DevController): else: try: (typ, params) = string.split(uname, ':', 1) - if typ not in ('phy', 'file'): + if typ not in ('phy', 'file', 'tap'): raise VmError( - 'Block device must have "phy" or "file" specified to type') + 'Block device must have "phy", "file" or "tap" ' + 'specified to type') except ValueError: raise VmError( 'Block device must have physical details specified') -- 2.30.2